<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lesson_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="lessonType" item="vo"}
                <label for="row[lesson_type]-{$key}"><input id="row[lesson_type]-{$key}" class="lesson_type" name="row[lesson_type]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group title" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group contents" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group mediauri" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Media_uri')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-media_uri" class="form-control" size="50" name="row[media_uri]" type="text" >
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-media_uri" class="btn btn-danger plupload" data-input-id="c-media_uri" data-mimetype="video/mp4,video/flv" data-multiple="false" data-maxsize = "1024M"	data-preview-id="p-media_uri"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-media_uri" class="btn btn-primary fachoose" data-input-id="c-media_uri" data-mimetype="video/mp4,video/flv"  data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-media_uri"></span>
            </div>
            <span style="color: red;font-weight: bold;font-size: small">文件最大为2G</span>
            <ul class="row list-inline plupload-preview" id="p-media_uri"></ul>
        </div>
    </div>
    <div class="form-group minlength" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min_length')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min_length" class="form-control" name="row[min_length]" value="1" type="number" style="width: 20%"> 分
        </div>
    </div>
    <div class="form-group minlength video_length" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video_length')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-video_length" class="form-control" name="row[video_length]" value="1" type="number" style="width: 20%"> 分
        </div>
    </div>
    <div class="form-group starttime" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group endtime" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
